package com.ccnf.model.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ccnf.model.entity.RewardCash;
import com.ccnf.model.entity.RewardPrize;
import com.ccnf.model.pojo.PrizeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author developer
 * @since 2018-09-10
 */
public interface RewardPrizeMapper extends BaseMapper<RewardPrize> {

    List<RewardPrize> selectPrizeByInvitationId(Long invitationId);

    List<PrizeVo> selectWinnerUser(Long invitationId);

    RewardPrize selectUserPrize(@Param("invitationId") Long invitationId,
                                @Param("userId") Long userId);
}